package com.cc.ndmall.product.service.impl;

import com.cc.ndmall.common.utils.PageUtils;
import com.cc.ndmall.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


import com.cc.ndmall.product.dao.GoodsProductDao;
import com.cc.ndmall.product.entity.GoodsProductEntity;
import com.cc.ndmall.product.service.GoodsProductService;


@Service("goodsProductService")
public class GoodsProductServiceImpl extends ServiceImpl<GoodsProductDao, GoodsProductEntity> implements GoodsProductService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<GoodsProductEntity> page = this.page(
                new Query<GoodsProductEntity>().getPage(params),
                new QueryWrapper<GoodsProductEntity>()
        );

        return new PageUtils(page);
    }

}